package com.qk.management.mapper;

import com.qk.entity.Dept;
import jakarta.websocket.server.PathParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 上官徵羽
 * @version 1.0
 * @since 2025-09-29 11:13
 */
@Mapper
public interface DeptMapper {
    void delete(Integer id);

    List<Dept> page(@PathParam("name") String name, @PathParam("status") Integer status);

    void addDept(@Param("dept") Dept dept);

    Dept getById(Integer id);

    void update(@Param("dept") Dept dept);

    List<Dept> listAll();

    Dept getByName(String name);
}
